﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using LitJson;

namespace Portal
{
    public static class JsonSerialization
    {
        public static string Serialization(this object o)
        {
            return JsonMapper.ToJson(o);
        }
        public static T Deserialize<T>(this string json)
        {
            return JsonMapper.ToObject<T>(json);
        }
    }
}
